﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CWCS.Core.Library.ScanManager
{
    /// <summary> 
    /// Author: Wesky 
    /// CreateTime: 2021/11/30 9:21:01 
    /// Description: SR1000 异常编码 
    /// </summary>
    public enum ErrorCode
    {
        None = 0,
        AlreadyOpen = 1,
        Closed = 2,
        OpenFailed = 3,
        HeadFailed = 4,
        Timeout = 5,
        SendFailed = 6,
        BeginReceiveFailed = 7,
        IpAddressInvalidArgument = 8,
        IpAddressUsed = 9,
        CommandPortInvalidArgument = 10,
        DataPortInvalidArgument = 11,
        CommandInvalidArgument = 12,
        CommandTimeoutInvalidArgument = 13,
        SocketAddressUsed = 14,
        SocketConnectionReset = 15,
        FtpServiceUnavailable = 421,
        FtpCannotOpenDataConnection = 425,
        FtpDataConnectionDisconnected = 426,
        FtpFileBusy = 450,
        FtpActionAborted = 451,
        FtpDiskFull = 452,
        FtpCommandUnrecognized = 500,
        FtpInvalidArgument = 501,
        FtpCommandUnimplemented = 502,
        FtpCommandBadSequence = 503,
        FtpArgumentsUnimplemented = 504,
        FtpNotLoggedIn = 530,
        FtpActionFailed = 550,
        FtpExceededDisk = 552,
        FtpFileActionFailed = 553,
        SocketAddressDisabled = 10049,
        SocketConnectionUnreach = 10051,
        SocketAlreadyConnected = 10052,
        SocketConnectionTimeout = 10053,
        SocketConnectionRefused = 10054,
        UnexpectedError = 10055
    }
}
